<?php
if( ! isset($Name)) $check = $Name = $Showroom = '';
if(isset($this->validation->Name)) {
	$Name = $this->validation->Name;
    $Showroom = $this->validation->Showroom;
    if($Showroom == 1 || $Showroom == 'Yes' ){ $check = 'checked="checked"'; }
}
$this->load->view('header');
echo $error;
if(isset($upload_data)) {
    echo '<ul>';
    foreach($upload_data as $item => $value){
        echo "<li>$item: $value</li>";
    }
    echo '</ul>';
}

echo form_open_multipart('billboard/vehicle/vehicle_add_edit'); 
?>
<fieldset><legend accesskey="N" tabindex="1"><?=$title?></legend> 
    <table>
        <tr>
            <th><label class="form" for="Name">Vehicle Name:</label></th>
            <td><input type="text" name="Name" value="<?=$Name?>" size="10" maxlength="30" /></td>
        </tr>
            <th><label class="form" for="Showroom">Has Showroom:</label></th>
            <td>
                <input type="radio" name="Showroom" <?=$check?> value="Yes" />Yes
                <input type="radio" name="Showroom" value="No" />No
            </td>

        </tr>
    </table>
    <br />
            <div class="right"><input type="submit" name="submit_vehicle" value="Submit"></div>
</fieldset>
</form>

<?php $this->load->view('footer'); ?>
